home *** CD-ROM | disk | FTP | other *** search
/ Champak 33 / Volume 33 - JOGO DISK .iso / Games / snowboard.swf / scripts / frame_7 / PlaceObject2_316_398 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2007-01-15  |  577b  |  30 lines

  1. onClipEvent(enterFrame){
  2.    if(this.head.hitTest(_root.player.board) && _root.player.falling == true && _root.player.grounded == false && _currentframe == 1)
  3.    {
  4.       _root.player.yspeed = -15;
  5.       _root.player.gotoAndStop(2);
  6.       this.gotoAndStop(2);
  7.    }
  8.    if(bleh == 0)
  9.    {
  10.       _xscale = scale;
  11.    }
  12.    if(bleh == 1)
  13.    {
  14.       _xscale = - scale;
  15.    }
  16.    if(_X <= _root.super._x)
  17.    {
  18.       gotoAndStop("blank");
  19.       ok = 0;
  20.    }
  21.    else
  22.    {
  23.       ok = 1;
  24.    }
  25.    if(_currentframe != 2 && ok == 1)
  26.    {
  27.       gotoAndStop(1);
  28.    }
  29. }
  30.